package com.etcn.modules.busi.home.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.etcn.common.controller.BaseController;
import com.etcn.modules.busi.home.pojo.WmNotice;
import com.etcn.modules.busi.home.service.IWmNoticeService;

import org.springframework.web.bind.annotation.ResponseBody;
import com.etcn.common.annotation.Manage;

/**
 * 公告controller
 * @author guozc
 * @date: 2018-01-30 22:44:55
 */
@Controller
@RequestMapping("/v1/home")
public class WmNoticeController extends BaseController {

	@Autowired
    private IWmNoticeService wmNoticeService;

     /**
     * 查询公告
     */
    @Manage
    @RequestMapping(value = "notices", method = RequestMethod.GET)
    public @ResponseBody Object notices(WmNotice entity) throws Exception{
    	return wmNoticeService.findAppList(entity);
    }
    
}